import React, { Component } from 'react';
//导入用于路径切换的组件
import {NavLink} from "react-router-dom"; 
class kind extends Component {
    render() {
        return (
            <div>
                <NavLink to="/kind/kind1">类别1</NavLink>
                <NavLink to="/kind/kind2">类别2</NavLink>
                <NavLink to="/kind/kind3">类别3</NavLink>
                <div>{this.props.children}</div> 
            </div>
        );
    }
}

export default kind;